let mx = require('mxgraph-js')
/*
const factory = new mx({
  mxImageBasePath: 'assets/mxgraph/4.0.0/images',
  mxBasePath: 'assets/mxgraph/4.0.0'
}) */

// let _default = {}
// for (var name in factory) {
//   _default[name] = factory[name]
// }

// 解决浏览器不能根据xml显示图的问题
window['mxEditor'] = mx.mxEditor
window['mxGeometry'] = mx.mxGeometry
window['mxDefaultKeyHandler'] = mx.mxDefaultKeyHandler
window['mxDefaultPopupMenu'] = mx.mxDefaultPopupMenu
window['mxGraph'] = mx.mxGraph
window['mxStylesheet'] = mx.mxStylesheet
window['mxDefaultToolbar'] = mx.mxDefaultToolbar
window['mxGraphModel'] = mx.mxGraphModel

module.exports = mx
